<?php namespace App\Admin\Goods\GsJmSchedule;

use App\Core\Model as BaseModel;

class Model extends BaseModel {

    protected $table = 'goods_schedule_jimiao';
    protected $primaryKey = 'id';

    public function goods(){
        return $this->belongsTo('App\Admin\Goods\Goods\Model', 'goods_id', 'id');
    }

    public function jmschedule(){
        return $this->belongsTo('App\Admin\Goods\JmSchedule\Model', 'schedule_id', 'id');
    }
}